<%@ page contentType="text/html; charset=utf-8"%>
<%@ include file="../../../common/include.jsp"%>
<html>
	<head>
		<title>组织结构管理</title>
		<jsp:include page="../../../common/head.jsp">
			 <jsp:param name="_useTree" value="true"/>
		</jsp:include>
		<SCRIPT>
	var obj=null;
	function  clickEvent(nodeObj)
	{
		obj = nodeObj;
		var str=obj.getAttribute("id");
	}
	function dataSelected(){
		if(obj!=null)
		{
			var str = obj.getAttribute("id").split("#");
			var orgId = str[0];
			if(orgId!="${orgPid}")
			{
				window.top.returnValue = obj.getAttribute("id");
				window.top.close();
			}
		}
		alert("请选择组织结构信息！");
	}

</script>
	</head>
	<body>
		<div id="body_div">
	<w:ShowTitle name="组织结构">
		<w:TitleButton funcName="选择" onClickFunction="dataSelected()" urlImg="${ctx}/images/main/ok.png"/>
	</w:ShowTitle>
	<div id="body_content">
<TABLE cellSpacing="1" cellPadding="0" width="100%" border="0">
           <TR>
             <TD>
      <w:tree returnValue="orgId#orgName#orgPid" regex="#"
      displayValue="orgName" pidname="orgPid" 
      content="${datalist}" idname="orgId" headValue="${orgPid}" 
      headDisplayValue="${orgOrganization.orgName}"></w:tree>
			</TD>
	</TR>
       </TABLE>
       </div>
	</div>	
	</body>
</html>
